package com.victor.entity.partner;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Table(name = "partner_photo_group")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PartnerPhotoGroup {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "g_id", unique = true, nullable = false, length = 11)
	private Integer g_id;
	
	@Column(name = "p_id", length = 50)
	private String p_id;// 该组所属的服务伙伴商家id

	@Column(name = "g_name", length = 50)
	private String g_name;// 组名称

	@Column(name = "g_type", length = 50)
	private String g_type;// 组类型（1、宾馆。2、美食。3、娱乐。）

	@Transient
	private List<PartnerPhoto> partnerPhotos;// 组内图片

	@Transient
	private int number;// 组内图片数量
}